// Copyright 2017 The Kubernetes Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

@import '../../variables';

.kd-download-dialog {
  display: grid;
  grid-auto-rows: minmax(2 * $baseline-grid, auto);
  grid-gap: 2 * $baseline-grid;
  grid-template-columns: $baseline-grid auto $baseline-grid;
}

.kd-download-dialog-error {
  display: grid;
  grid-auto-rows: minmax(2 * $baseline-grid, auto);
  grid-gap: $baseline-grid;
  grid-template-columns: $baseline-grid auto $baseline-grid;
}

.kd-download-progress {
  padding-top: .5 * $baseline-grid;
}

.kd-download-progress-bar {
  grid-column: 2;
  grid-row: 2;
  margin-top: $baseline-grid;
}

.kd-download-info {
  grid-column: 2;
  grid-row: 1;
}

.kd-download-buttons {
  grid-column: 2;
  grid-row: 3;

  .md-button {
    margin-bottom: 2 * $baseline-grid;
    margin-left: 0;
  }
}

.kd-download-error-button {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;

  .md-button {
    margin: $baseline-grid 0 (2 * $baseline-grid);
  }
}
